Intro

Basic analysis of Vancouver weather patterns:

Data Collection

Data is collected from Govt of Canada website:

  1. search: http://climate.weather.gc.ca/historical_data/search_historic_data_e.html
  2. specify station as containing ‘vancouver harbour’
  3. select ‘daily’, select ‘year’
  4. ‘Go’ goes to a page to access results for year

(process is automated in ‘van-weather-import.R’)

## [1] "Winter" "Spring" "Summer" "Fall"

Earliest date: 1998-01-01
Most recent date: 2019-05-24

Check data structure:

## Classes 'spec_tbl_df', 'tbl_df', 'tbl' and 'data.frame': 7811 obs. of  10 variables:
##  $ Month       : Factor w/ 12 levels "1","2","3","4",..: 1 1 1 1 1 1 1 1 1 1 ...
##  $ Season      : Factor w/ 4 levels "Winter","Spring",..: 1 1 1 1 1 1 1 1 1 1 ...
##  $ Season.Yr   : num  1998 1998 1998 1998 1998 ...
##  $ Date        : Date, format: "1998-01-01" "1998-01-02" ...
##  $ Year        : Factor w/ 22 levels "1998","1999",..: 1 1 1 1 1 1 1 1 1 1 ...
##  $ Day         : num  1 2 3 4 5 6 7 8 9 10 ...
##  $ Max.Temp    : num  8.7 4.2 1.7 2.8 5.7 7 7.3 7.9 4 3.4 ...
##  $ Min.Temp    : num  3 -1.1 -2.2 -0.9 2.3 3.6 4 1.3 0.3 -1.7 ...
##  $ Mean.Temp   : num  5.9 1.6 -0.3 1 4 5.3 5.7 4.6 2.2 0.9 ...
##  $ Total.Precip: num  5.6 0.6 0.2 6 6.2 3.8 0 0 0 0.2 ...
##  - attr(*, "spec")=
##   .. cols(
##   ..   Month = col_double(),
##   ..   Season = col_character(),
##   ..   Season.Yr = col_double(),
##   ..   Date = col_date(format = ""),
##   ..   Year = col_double(),
##   ..   Day = col_double(),
##   ..   Max.Temp = col_double(),
##   ..   Min.Temp = col_double(),
##   ..   Mean.Temp = col_double(),
##   ..   Total.Precip = col_double()
##   .. )

Earliest date: 1998-01-01
Most recent date: 2019-05-24

Check Data Relationships

  • uses PerformanceAnalytics package

Precipitation

Monthly precipitation data: Averages

Data by Month - ranked in order of highest precipitation

Monthly Preciptiation: Ranges

Current Month Precipitation

Monthly Comparison YoY

For each month, what has been the pattern in precipitation over the years?

Seasonal Precipitation

Seasonal Precipitation Annual Ranking

Temperature

Monthly average temperature

Monthly Temperatures: Ranges

Monthly Temp. Comparison YoY

For each month, what has been the pattern in ave. temperature over the years?